$NG.AllReady(function (page, { useAction, useBeforeClick, useValuesChange, useClick, useUpdateRow, subscribe, useUpdateRows }) {
    const mstform = $NG.getCmpApi("p_form_cght_m")
    const dgrid1 = $NG.getCmpApi("p_form_cght_d1")
    const getHeadValue = (str) => mstform.getItem(str).getValue()

    // init
    hiddenJcptNo()

    if (page.oType == 'add') { }

    useValuesChange(() => {
        hiddenJcptNo()
    }, "p_form_cght_m.u_sfjcpt")

    // 隐藏字段
    function hiddenJcptNo() {
        const u_sfjcpt = getHeadValue("u_sfjcpt")
        let hidden = false
        if (u_sfjcpt == '01') {
            hidden = false
        } else {
            hidden = true
        }
        mstform.getItem("u_jcptcgbh").setProps({
            hidden
        })
    }
})